package it.uniroma2.art.coda.converters.default_c;

import java.util.Dictionary;
import java.util.Properties;

import it.uniroma2.art.coda.contracts.default_c.DefaultContract;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {
	@Override
	public void start(BundleContext context) throws Exception {
		Dictionary<Object, Object> properties = new Properties();
		properties.put("it.uniroma2.art.coda.contract", "http://art.uniroma2.it/coda/converters/default");
		context.registerService(DefaultContract.class.getName(), new DefaultConverter(), properties);
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		// TODO Auto-generated method stub

	}
}
